home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / bin / kmake < prev    next >
Encoding:
Text File  |  1990-01-19  |  882 b   |  36 lines

  1. #!/bin/csh
  2. # This script compiles all c programs in the subdirectories of kaos
  3. # and make corresponding libraries. 
  4. # Note: This does not check dependencies
  5. # Note: The reason for the existence of this shell script is because of
  6. # the problem with the use of make scripts of the old make facilities 
  7. # under SunOS 3.x operating systems.
  8. # Run "make kaos" after running this cshell script.
  9. # The environmental variable $KAOSHOME should be set in .login and .cshrc files.
  10.  
  11. set mathlibs = -lm
  12. set cflags = (-sun4 -O)
  13.  
  14. cd ${KAOSHOME}
  15. echo "cd ${KAOSHOME}"
  16. echo -n "cleaning all object and archive files..."
  17. unalias rm
  18. rm -f *lib/*.[oa]
  19. echo "Done"
  20.  
  21. set libs = `ls -d *lib`
  22. set lib =
  23.  
  24. echo "starting compilation..."
  25. foreach lib (${libs})
  26.     cd ${lib}
  27.     echo "cd ${lib}"
  28.     cc ${cflags} ${mathlibs} -c *.c
  29.     ar r ${lib}.a *.o
  30.     ranlib ${lib}.a
  31.     cd ..
  32. end
  33.  
  34. alias rm rm -i
  35. echo "compilation done"
  36.